package com.service.impl;

import com.mapper.UserMapper;
import com.pojo.User;
import com.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User userQuery(String phone) {
        User user=userMapper.selectByPhone(phone);
        return user;
    }

    @Override
    public void update(User user) {
        userMapper.update(user);
    }
}
